import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from '@/store/index';
import './permission';
import "@/assets/scss/index.scss";
import ElementUI from 'element-ui';
import ajax from '@/utils/request';
import 'nodelist-foreach-polyfill';
import Directive from '@/directive';
import ComponentChart from "@/components/echart"
// WebSocket封装方法
import VueSocketIO from 'vue-socket.io';
import { baseURL } from '@/utils/config';
// Vue.use(new VueSocketIO({
//   debug: false,
//   connection: baseURL
// }));

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(Directive);
Vue.use(ComponentChart);

Vue.prototype.$axios = ajax;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

 